<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动态广告</title>
    <script src="./vue.js"></script>
    <script src="./jquery-3.4.1.min.js"></script>
    <style>
        .addImg{
            width: 0px;
            height: 470px;
        }
    </style>
</head>
<body>
    <div id="app">
        <img src="./img/mini.png" @mouseover="showImg()" @mouseout="hiddenImg()">
        <img src="./img/big.jpg" :class="classImg" id="img">
    </div>
    <script>
        new Vue({
            el:"#app",
            data:{
                classImg:"addImg"
            },
            methods:{
                showImg(){
                    $("#img").animate({width:'790px'})
                },
                hiddenImg(){
                    $("#img").animate({width:'0px'})
                }
            }
        })
    </script>
</body>
</html>